package com.aring.service.impl;


import java.util.ArrayList;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aring.bean.MatchInfo;
import com.aring.bean.Place;
import com.aring.bean.PlaceManager;
import com.aring.bean.School;
import com.aring.bean.TimeTable;
import com.aring.dao.PlaceManagerDao;
import com.aring.service.PlaceManagerService;

@Service("ManagerService")
public class PlaceManagerServiceImpl implements PlaceManagerService{
  @Autowired
  private PlaceManagerDao ManagerDao;

public int addPlaceManager(PlaceManager placeManager) {
	 
	return ManagerDao.insertPlaceManager(placeManager);
}
 public PlaceManager selectPlaceManagerByAccount(String account)
 {
	 return ManagerDao.selectPlaceManagerByAccount(account);
 }
public int insertMatchInfo(MatchInfo mi) {
	// TODO Auto-generated method stub
	return ManagerDao.insertMatchInfo(mi);
}
public PlaceManager selectPlaceManagerByPm_no(Integer pm_no) {
	// TODO Auto-generated method stub
	return ManagerDao.selectPlaceManagerByPm_no(pm_no);
}
public int updateManager(PlaceManager manager) {
	// TODO Auto-generated method stub
	return ManagerDao.updateManager(manager);
}
public ArrayList<PlaceManager> selectMatchInfo(Integer pm_no) {
	// TODO Auto-generated method stub
	return ManagerDao.selectMatchInfo(pm_no);
}
public MatchInfo selectMatchByMi_no(Integer match_no) {
	// TODO Auto-generated method stub
	return ManagerDao.selectMatchByMi_no(match_no);
}
public int updateMatch(MatchInfo match) {
	// TODO Auto-generated method stub
	return ManagerDao.updateMatch(match);
}
public int insertPlace(Place place) {
	// TODO Auto-generated method stub
	return ManagerDao.insertPlace(place);
}
public Place selectPlaceByP_no(Integer p_no) {
	// TODO Auto-generated method stub
	return ManagerDao.selectPlaceByP_no(p_no);
}
public ArrayList<Place> selectPlaceByPm_no(Integer pm_no) {
	// TODO Auto-generated method stub
	return ManagerDao.selectPlaceByPm_no(pm_no);
}
public int updatePlace(Place place) {
	// TODO Auto-generated method stub
	return ManagerDao.updatePlace(place);
}
public ArrayList<School> querySchool(Integer pm_no) {
	// TODO Auto-generated method stub
	return ManagerDao.querySchool(pm_no);
}
public ArrayList queryType(Integer pm_no, Integer school) {
	// TODO Auto-generated method stub
	return ManagerDao.queryType(pm_no,school);
}
public School querySchoolById(Integer id) {
	// TODO Auto-generated method stub
	return ManagerDao.querySchoolById(id);
}
public Integer queryP_noBySchoolAndType(String name,String type) {
	// TODO Auto-generated method stub
	return ManagerDao.queryP_noBySchoolAndType(name,type);
}
public int insertPlaceNum(Integer p_no, Integer pn_no) {
	// TODO Auto-generated method stub
	return ManagerDao.insertPlaceNum(p_no,pn_no);
}
public Integer queryPn_id(Integer p_no, Integer pn_no) {
	// TODO Auto-generated method stub
	return ManagerDao.queryPn_id(p_no,pn_no);
}
public int insertTimeTable(TimeTable table) {
	// TODO Auto-generated method stub
	return ManagerDao.insertTimeTable(table);
}
  
}
